package string;

import zz.Person;

public class demo01 {
    public static void main(String[] args) {
        char[] chars = {'a', 'b', 'c'};
        String s1 = "abc";
        String s2 = new String(chars);
        System.out.println(s1.equals(s2));
        System.out.println(new Person("sd", 12).equals(new Person("sd", 12)));
    }
}
